<?php defined('SYSPATH') or die('No direct script access.');
/**
 * @file link.php
 * @brief link ORM
 * @author Lionel Tsai
 * @version 1.0
 * @date 2012-02-17
 */
class Model_Link extends ORM {
	protected $_table_name = 'links';
	protected $_primary_key = 'link_id';
	protected $_belongs_to = array(
		'users' => array('model' => 'user', 'foreign_key' => 'user_id'),
		);
	protected $_has_many = array(
		'linkmeta' => array('model' => 'linkmeta', 'foreign_key' => 'link_id'),	
		);
}
